package com.bckj.fastboot.core.extra.increment;

import com.bckj.fastboot.core.redis.RedisOps;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;

/**
 * FastIncrConfiguration
 *
 * @author wfc
 **/
@AutoConfiguration
public class FastIncrConfiguration {

    @Bean
    @ConditionalOnBean(RedisOps.class)
    public IncrOps incrOps(RedisOps redisOps) {
        return new IncrOps(redisOps);
    }
}
